//
//  YWMeterReadingRecord.h
//  maintain
//
//  Created by 郑想 on 16/2/24.
//  Copyright © 2016年 ewin. All rights reserved.
//

#import <Foundation/Foundation.h>
#import "YWHandler.h"
@class YWEquipment;

typedef NS_ENUM(NSUInteger, YWMeterReadingRecordUploadStatus) {
    YWMeterReadingRecordUploadStatusNull = 0,
    YWMeterReadingRecordUploadStatusUploading = 1,
    YWMeterReadingRecordUploadStatusFinished = 2, //上传
    YWMeterReadingRecordUploadStatusUnFinished = 3 //未上传
};

@interface YWMeterReadingRecord : NSObject
/**记录Id*/
@property (nonatomic, copy) NSString* meterRecordId;
/**读数数据时间*/
@property (nonatomic, assign) NSTimeInterval readingTime;
/**抄表月份*/
@property (nonatomic, copy) NSString* readingMonth;
/**设备Id*/
@property (nonatomic, copy) NSString* equipmentId;
/**设备类型ID*/
@property (nonatomic, assign) NSInteger equipmentTypeId;
/**上次读数*/
//@property (nonatomic, assign) float lastReadNumber;
///**上次抄表时间*/
//@property (nonatomic, assign) NSTimeInterval lastReadTime;
/**本次读数*/
@property (nonatomic, assign) float thisReadNumber;
/**抄表人*/
@property (nonatomic, strong) YWHandler* creator;
/**年月用于排序*/
@property (nonatomic, assign) NSInteger yearMonth;
/**年月日用于排序*/
@property (nonatomic, copy) NSString* yearMonthDay;
/**月日 时分用于显示*/
@property (nonatomic, copy) NSString* dateShow;
/**抄表备注*/
@property (nonatomic, copy) NSString* note;
/**上传状态*/
@property (nonatomic, assign) YWMeterReadingRecordUploadStatus uploadStatus;
/**记录的图片数组*/
@property (nonatomic, strong) NSArray* pictures;
/**设备对象*/
@property (nonatomic, strong)YWEquipment *equipment;
/**标示符防止提交相同记录（提交记录时候成功，但是断网没有返回id回来，记录就是未上传状态，下次再上传，后台会判断uniqueTag）*/
@property (nonatomic, copy) NSString* uniqueTag;

/**倍率*/
@property (nonatomic, assign) float rate;
/**实际用量*/
@property (nonatomic, assign) float usedAmount;
/**单价*/
@property (nonatomic, assign) float price;
/**金额*/
@property (nonatomic, assign) float payment;
@end
